/* 基础样式 */
.cool-yun-navbar {
    height: 68px;
    background: #E3F2FD;
    padding: 0 24px;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 区域1：品牌+产品 */
.brand-section {
    display: flex;
    align-items: center;
    width: 280px;
}

.brand-logo {
    height: 32px;
    margin-right: 12px;
}

/*.product-selector .dropdown-toggle {*/
/*  background: rgba(33, 150, 243, 0.1);*/
/*  border: none;*/
/*  color: #2196F3;*/
/*  padding: 8px 16px;*/
/*  border-radius: 20px;*/
/*  font-weight: 500;*/
/*}*/


/* 产品选择器样式 */
.product-selector .btn {
    border: 1px solid #dee2e6;
    color: #2A3950;
    min-width: 180px;
    text-align: left;
}

.product-selector .dropdown-menu {
    width: 100%;
    border-radius: 0;
}

.product-selector .dropdown-item {
    color: #2A3950;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s;
}

.product-selector .dropdown-item:hover {
    background: #f8f9fa;
    color: #78baed;
}

.product-selector .dropdown-toggle::after {
    float: right;
    margin-top: 0.6rem;
}


/* 区域2：功能菜单 */
.menu-section {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    color: #424242;
    cursor: pointer;
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2196F3;
}

/* 区域3：工具区 */
.tool-section {
    width: 380px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-box {
    position: relative;
    margin-right: 20px;
}

.search-box input {
    width: 240px;
    padding: 8px 40px;
    border: 1px solid #BBDEFB;
    border-radius: 20px;
    background: #FFFFFF;
}

.search-box i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #757575;
}

.search-box .fa-camera {
    left: 12px;
}

.search-box .fa-search {
    right: 12px;
}

/* 工具按钮 */
.tool-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #BBDEFB;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
}

.tool-btn:hover {
    background: #90CAF9;
}

/* 用户面板 */
.user-panel {
    margin-left: 20px;
}

/* 触发按钮样式 */
.avatar-circle {
    display: inline-block; /* 兼容span标签 */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2196F3;;
    position: relative;
    /*border: 2px solid #000; !* 匹配图片的黑色边框 *!*/
}

.avatar-circle i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 下拉菜单内容 */
.user-info {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info .avatar-circle {
    flex-shrink: 0;
}

.username {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.logout-btn {
    color: #666;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #f8f9fa;
    color: #333;
}

/* 下拉菜单 */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    /*background: white;*/
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 160px;
    z-index: 1000;
}

.logout-btn {
    width: 100%;
    padding: 8px 16px;
    background: none;
    border: none;
    text-align: left;
    color: #424242;
    cursor: pointer;
}

.logout-btn:hover {
    background: #F5F5F5;
}